home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1989 …il & Dave's Excellent CD / Excellent CD HFS.raw / Moof / Goodies / MPW Goodies / Interfaces / CIncludes / SegLoad.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  1.1 KB  |  53 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Tuesday, October 4, 1988 at 9:14 PM
  4.     SegLoad.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.  1985-1988
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __SEGLOAD__
  15. #define __SEGLOAD__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #define appOpen 0   /*Open the Document (s)*/
  22. #define appPrint 1  /*Print the Document (s)*/
  23.  
  24. struct AppFile {
  25.     short vRefNum;
  26.     OSType fType;
  27.     short versNum;  /*versNum in high byte*/
  28.     Str255 fName;
  29. };
  30.  
  31. #ifndef __cplusplus
  32. typedef struct AppFile AppFile;
  33. #endif
  34.  
  35. #ifdef __safe_link
  36. extern "C" {
  37. #endif
  38. pascal void UnloadSeg(void * routineAddr)
  39.     = 0xA9F1; 
  40. pascal void ExitToShell(void)
  41.     = 0xA9F4; 
  42. pascal void GetAppParms(Str255 apName,short *apRefNum,Handle *apParam)
  43.     = 0xA9F5; 
  44. pascal void CountAppFiles(short *message,short *count); 
  45. pascal void GetAppFiles(short index,AppFile *theFile); 
  46. pascal void ClrAppFiles(short index); 
  47. void getappparms(char *apName,short *apRefNum,Handle *apParam); 
  48. #ifdef __safe_link
  49. }
  50. #endif
  51.  
  52. #endif
  53.